package demo3;

public class BigFish extends Animal implements Swimming{
    String color;
    public BigFish(String name, int age,String color) {
        super(name, age);
        this.color=color;
    }

    @Override
    public void eat() {
        System.out.println(this.name+"吃水草------");
    }
    public void swimming()
    {
        System.out.println(this.name+"正在水里游泳----");
    }
}
